package homework1;

public class Test1 {
    public static void main(String[] args) {
        // 计算3的5次幂
        double result1 = Math.pow(3, 5);
        System.out.println("3的5次幂为：" + result1);

        // 计算3.2向上取整的结果
        double result2 = Math.ceil(3.2);
        System.out.println("3.2向上取整的结果为：" + result2);

        // 计算3.8向下取整的结果
        double result3 = Math.floor(3.8);
        System.out.println("3.8向下取整的结果为：" + result3);

        // 计算5.6四舍五入取整的结果
        long result4 = Math.round(5.6);
        System.out.println("5.6四舍五入取整的结果为：" + result4);
    }
}
